Highcharts.chart('container', {
    chart: {
        height: 600,
        inverted: true
    },
    title: {
        text: '大同村党委'
    },
    series: [{
        type: 'organization',
        name: 'Highsoft',
        keys: ['from', 'to'],
        data: [
            ['dwsj1', 'dwh'],
            ['dwsj2', 'dwh'],
            ['dwsj3', 'dwh'],
            ['dwsj4', 'dwh'],
            ['dwsj5', 'dwh'],
            // ['董事会', 'CEO'],
            // ['CEO', 'CTO'],
            // ['CEO', 'CPO'],
            // ['CEO', 'CSO'],
            // ['CEO', 'CMO'],
            // ['CEO', 'HR'],
            // ['CTO', 'Product'],
            // ['CTO', 'Web'],
            // ['CSO', 'Sales'],
            // ['CMO', 'Market']
        ],
        levels: [
            {
                level: 0,
                height: 25
            },
            {
                level: 1,
                color: 'silver',
                dataLabels: {
                    color: 'black'
                },
                height: 25
            },
            {
                level: 2,
                color: '#980104'
            },
            {
                level: 4,
                color: '#359154'
            }
        ],
        nodes: [
            {
                id: 'dwsj1',
                title: '党委书记',
                name: '陈志峰',
                image: "http://localhost:8086/party/陈志峰1.jpg"
            },
            {
                id: 'dwsj2',
                title: '党委副书记',
                name: '梁顺华',
                image: "http://localhost:8086/party/梁顺华.jpg"
            },
            {
                id: 'dwsj3',
                title: '党委委员',
                name: '梁海英',
                image: "http://localhost:8086/party/梁海英.jpg"
            },
            {
                id: 'dwsj4',
                title: '党委委员',
                name: '吴建峰',
                image: "http://localhost:8086/party/吴建峰.jpg"
            },
            {
                id: 'dwsj5',
                title: '党委委员',
                name: '何兆文',
                image: "http://localhost:8086/party/何兆文.jpg"
            },
            {
                id: 'dwh',
                name: '党委会',
                image: "http://localhost:8086/party/党徽.jpg"
            },
            {
                id: 'HR',
                title: 'HR/CFO',
                name: 'Anne Jorunn Fjærestad',
                color: '#007ad0',
                image: 'https://wp-assets.highcharts.com/www-highcharts-com/blog/wp-content/uploads/2018/11/12132314/AnneJorunn.jpg',
                column: 3,
                offset: '75%'
            },
            {
                id: 'CTO',
                title: 'CTO',
                name: 'Christer Vasseng',
                column: 4,
                image: 'https://wp-assets.highcharts.com/www-highcharts-com/blog/wp-content/uploads/2018/11/12140620/Christer.jpg',
                layout: 'hanging'
            },
            {
                id: 'CPO',
                title: 'CPO',
                name: 'Torstein Hønsi',
                column: 4,
                image: 'https://wp-assets.highcharts.com/www-highcharts-com/blog/wp-content/uploads/2018/11/12131849/Torstein1.jpg'
            },
            {
                id: 'CSO',
                title: 'CSO',
                name: 'Anita Nesse',
                column: 4,
                image: 'https://wp-assets.highcharts.com/www-highcharts-com/blog/wp-content/uploads/2018/11/12132313/Anita.jpg',
                layout: 'hanging'
            },
            {
                id: 'CMO',
                title: 'CMO',
                name: 'Vidar Brekke',
                column: 4,
                image: 'https://wp-assets.highcharts.com/www-highcharts-com/blog/wp-content/uploads/2018/11/13105551/Vidar.jpg',
                layout: 'hanging'
            },
            {
                id: 'Product',
                name: '产品研发'
            },
            {
                id: 'Web',
                name: '运维',
                description: '网站开发，系统维护'
            },
            {
                id: 'Sales',
                name: '销售部'
            },
            {
                id: 'Market',
                name: '市场部'
            }
        ],
        colorByPoint: false,
        color: '#007ad0',
        dataLabels: {
            color: 'white',
        },
        borderColor: 'white',
        nodeWidth: 65
    }],
    tooltip: {
        outside: true
    },
    exporting: {
        allowHTML: true,
        sourceWidth: 800,
        sourceHeight: 600
    }
});